# @Author: TonghuiWu
# @Date:   2018-12-28 21:02:25
# @Last Modified by:   TonghuiWu
# @Last Modified time: 2019-01-09 16:17:32
# @E-mail: wutonghui22@163.com


from django.urls import path, re_path

from .views import OrgView, AddUserAskView, OrgHomeView, OrgCourseView, OrgDescView, OrgTeacherView, AddFavView

urlpatterns = [
    # 课程机构首页
    path('list/', OrgView.as_view(), name='org_list'),
    path('add_ask', AddUserAskView.as_view(), name='add_ask'),
    re_path('home/(?P<org_id>\d+)/$', OrgHomeView.as_view(), name='org_home'),
    re_path('course/(?P<org_id>\d+)/$', OrgCourseView.as_view(), name='org_course'),
    re_path('desc/(?P<org_id>\d+)/$', OrgDescView.as_view(), name='org_desc'),
    re_path('teacher/(?P<org_id>\d+)/$', OrgTeacherView.as_view(), name='org_teacher'),

    # 机构收藏
    path('add_fav', AddFavView.as_view(), name='add_fav'),
]